package com.deuwise.system.controller;

import org.apache.http.HttpRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Copyright
 *
 * @Author:chenwenchao
 * @Date:2018/11/8 0008
 * Description:
 */

@RestController()
@RequestMapping("/")
public class HomeController {

    @GetMapping("")
    public void index(HttpServletResponse response) throws IOException {

        response.sendRedirect("/swagger-ui.html");
    }
}
